package com.sky.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * PROJECT_NAME: sky-take-out
 * NAME: CategoryDTO
 *
 * @AUTHOR: zhang
 * DATE: 2023/11/22
 * DESCRIPTION :
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CategoryDTO {
    /**
     * 分类id
     */
    private Long id;
    /**
     * 分类名称
     */
    @NotEmpty(message = "分类名称不能为空")
    private String name;
    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    private Integer sort;
    /**
     * 类型
     */
    private Integer type;

    /**
     * 状态
     */
    private Integer status;

}
